#include "2440addr.h"

void gpio_init(void)
{
    rGPACON = 0x7fffff;


    rGPBCON = 0x015550;
    rGPBUP  = 0x7ff;     // The pull up function is disabled GPB[10:0]


    rGPCCON = 0xaaa956aa;
    rGPCUP  = 0xffff;     // The pull up function is disabled GPC[15:0]

    rGPDCON = 0xaaaaaaaa;
    rGPDUP  = 0xffff;     // The pull up function is disabled GPD[15:0]

    rGPECON = 0xa02aa800; // For added AC97 setting
    rGPEUP  = 0xffff;

    rGPFCON = 0x9480;/* GPF7-EINT0  GPF0-INPUT GPF1-INPUT  GPF2-INPUT   GPF4-INPUT */
    rGPFUP  = 0xff;     // The pull up function is disabled GPF[7:0]

    rGPGCON = 0x00a2aaaa;// GPG9 input without pull-up
    rGPGUP  = 0xffff;    // The pull up function is disabled GPG[15:0]

    rGPHCON = 0x00faaa;
    rGPHUP  = 0x7ff;    // The pull up function is disabled GPH[10:0]

    rGPJCON = 0x02aaaaaa;
    rGPJUP  = 0x1fff;    // The pull up function is disabled GPH[10:0]

    rEXTINT0 = 0x22222222;    // EINT[7:0]
    rEXTINT1 = 0x22222222;    // EINT[15:8]
    rEXTINT2 = 0x22222222;    // EINT[23:16]
}
